home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / utils / console / splitvt-.000 / splitvt- / splitvt-1.6.1 / splitvt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-08  |  1.2 KB  |  36 lines

  1.  
  2. /* Miscellaneous defines and variables for the main splitvt module */
  3.  
  4. /* Returns true if 'ch' is a whitespace character */
  5. #define WHITESPACE(ch)    ((ch == ' ') || (ch == '\t') || (ch == '\n'))
  6.  
  7. #define toctrl(X)    (X-'@')        /* uppercase-to-control macro */
  8. #define unctrl(X)    (X+'@')        /* control-to-uppercase macro */
  9.  
  10. #define SWITCH    toctrl('W')    /* Switch window key */
  11. #define QUOTE    toctrl('V')    /* Quote next character key */
  12. #define COMMAND    toctrl('O')    /* Go into command mode */
  13.  
  14. /* The command prompt shown by vt_prompt() */
  15. #define PROMPT    "splitvt command: "
  16.  
  17. /* A Macro to set the window in the proper place.   */
  18. #define CUR_WIN()    ((thisfd == topfd) ? UPPER : LOWER)
  19. #define SET_WIN()    set_win(CUR_WIN())
  20.  
  21. /* Special characters (from splitvt.c) */
  22. extern char    command_c, switch_c, quote_c;
  23. extern int    dologin;    /* Do the shells run as login shells? */
  24.  
  25. /* The command to run in each window */
  26. extern char *upper_args[256], *lower_args[256];
  27.  
  28. /* The name of the startup file to parse */
  29. extern char *startupfile;    /* %s is replaced by $HOME */
  30.  
  31. /* The number of lines requested for the upper window (from vt100.c) */
  32. extern int UU_lines;
  33.  
  34. /* Functions exported from splitvt.c */
  35. extern void reset_bar();
  36.